﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:JVMTI_CORE_SHELL" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Name="window" x:Class="JVMTI_CORE_SHELL.QueryInterface"
        Title="QueryInterface" Topmost="True" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterOwner" Width="500" Background="{x:Null}" Foreground="{x:Null}" AllowsTransparency="True" ShowInTaskbar="False" SizeToContent="Height">
	<Window.Resources>
		<Storyboard x:Key="show">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="border">
				<EasingDoubleKeyFrame KeyTime="0" Value="100"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnUnloaded1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="stackPanel">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="stackPanel">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="100">
					<EasingDoubleKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource show}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="FrameworkElement.Unloaded">
			<BeginStoryboard x:Name="OnUnloaded1_BeginStoryboard" Storyboard="{StaticResource OnUnloaded1}"/>
		</EventTrigger>
	</Window.Triggers>
	<Border x:Name="border" BorderThickness="1" BorderBrush="{DynamicResource AccentBrush}" RenderTransformOrigin="0.5,0.5">
		<Border.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform/>
				<TranslateTransform/>
			</TransformGroup>
		</Border.RenderTransform>
		<StackPanel x:Name="stackPanel" Background="White" RenderTransformOrigin="0.5,0.5">
			<StackPanel.Resources>
				<local:PropertyBags x:Key="designTime">
					<local:PropertyBag PropertyName="Object" Value="123"/>
					<local:PropertyBag PropertyName="Object1" Value="456"/>
				</local:PropertyBags>
			</StackPanel.Resources>
			<StackPanel.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</StackPanel.RenderTransform>
			<Button Click="WindowCloseButton_Click" ToolTip="Add this path as an xml file" x:Name="CloseButton"   Style="{DynamicResource ButtonStyle1}" Margin="30,25,21,0" BorderThickness="2" HorizontalAlignment="Left" Width="29" Height="29" VerticalAlignment="Top">
				<Grid Height="17.408" Width="17.407">
					<Path HorizontalAlignment="Left" StrokeThickness="0" VerticalAlignment="Top" Width="8.5" Data="M4.25,0 L8.5,4.6660004 5.6290002,4.6660004 5.6290002,13.083 3.333,13.083 3.333,4.6660004 0,4.6660004 z" Height="13.083" Margin="0.037,6.788,0,-2.463" RenderTransformOrigin="0.500000001829604,0.178323012103346" Stretch="Fill">
						<Path.RenderTransform>
							<TransformGroup>
								<ScaleTransform/>
								<SkewTransform/>
								<RotateTransform Angle="-90"/>
								<TranslateTransform/>
							</TransformGroup>
						</Path.RenderTransform>
					</Path>
				</Grid>
			</Button>

			<TextBlock HorizontalAlignment="Left" Margin="30,10,0,0" TextWrapping="Wrap" Text="we guess you're looking for this..." VerticalAlignment="Top" Foreground="{DynamicResource AccentBrush}" FontSize="26.667" FontFamily="/JVMTI-CORE-SHELL;component/Fonts/#Segoe UI Light"/>
			<TextBlock TextWrapping="Wrap" HorizontalAlignment="Left" Margin="30,10,0,0" Style="{DynamicResource ShineTextBlock}" VerticalAlignment="Top" Width="438" Foreground="Black" Text="just fill in the search criterion, and we'll sort it out.leaving blank selects all. Conditions are connected with &quot;and&quot;."/>
			<TextBlock x:Name="slicingInfo" HorizontalAlignment="Left" Height="17" Margin="30,15,0,0" TextWrapping="Wrap" Text="WHEN DOES IT APPEAR?" VerticalAlignment="Top" Width="438" Foreground="Gray"/>
			<local:RangeSlider LowerValue="{Binding StartTime, Mode=OneWay}" UpperValue="{Binding EndTime, Mode=OneWay}" x:Name="rangeSlider" Margin="30,15,30,0" VerticalAlignment="Top"/>
			<TextBlock HorizontalAlignment="Left" Height="17" Margin="30,15,0,0" TextWrapping="Wrap" Text="HOW DO YOU DESCRIBE IT?" VerticalAlignment="Top" Width="256.653" Foreground="Gray"/>
			<ListBox HorizontalContentAlignment="Stretch" ItemsSource="{Binding Bags}" Margin="30,15,30,0" Background="{x:Null}" BorderThickness="1" VerticalAlignment="Top" BorderBrush="#FFE2E2E2">
				<ListBox.ItemTemplate>
					<DataTemplate>
						<DockPanel Height="30" LastChildFill="True" HorizontalAlignment="Stretch">
							<Grid Background="{StaticResource AccentBrush}">
								<TextBlock Margin="10,0,0,0" Foreground="White" Width="80" VerticalAlignment="Center" Text="{Binding PropertyName}"/>
							</Grid>
							<Grid Background="#FFE2E2E2" HorizontalAlignment="Stretch">
								<TextBox HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="Transparent" Text="{Binding Value, Mode=TwoWay}"/>
							</Grid>
						</DockPanel>
					</DataTemplate>
				</ListBox.ItemTemplate>
			</ListBox>
			<StackPanel Margin="30,15,30,10" Orientation="Horizontal">
				<Button Click="apply_Click" x:Name="apply" Content="apply" HorizontalAlignment="Left" Height="25.5" VerticalAlignment="Top" Width="70" Style="{DynamicResource ButtonStyle2}"/>
				<Button Click="clear_Click" x:Name="clear" Content="clear search" HorizontalAlignment="Left" Height="25.5" VerticalAlignment="Top" Width="70" Style="{DynamicResource ButtonStyle2}" Margin="15,0,0,0"/>
			</StackPanel>
		</StackPanel>
	</Border>
</Window>
